#python modules
import logging

# Importing some of Google's AppEngine modules:
import webapp2

#google modules
from google.appengine.api import users

#application modules
from controllers import mainh,expense,category,month,summary
from config import config
from models.models import *

# This is the main method that maps the URLs
# of your application with controller classes.
# If a URL is requested that is not listed here,
# a 404 error is displayed.

app = webapp2.WSGIApplication([
    ('/', mainh.MainHandler),
    ('/about/', mainh.AboutHandler),
    ('/expense/grid', expense.GridHandler),
    ('/expense/edit', expense.EditHandler),        
    ('/category/grid/',category.GridHandler),
    ('/category/edit',category.EditHandler),
    ('/category/validate',category.ValidateHandler),
    ('/month/grid/',month.GridHandler),
    ('/month/edit',month.EditHandler),
    ('/summary/month/',summary.MonthHandler),
    ('/summary/balance/',summary.BalancesheetHandler),
    ('/summary/type/',summary.TypeHandler)
    ],debug=True)

